def check_duplicate(lst):
    """
    检查列表中是否有重复元素
    """
    return len(set(lst)) != len(lst)

# 测试函数
test_lst = [1, 2, 3, 4, 5]
print(check_duplicate(test_lst)) # False

test_lst = [1, 2, 3, 4, 5, 5]
print(check_duplicate(test_lst)) # True

test_lst = [1, 2, 3, 4, 5, 1, 2]
print(check_duplicate(test_lst)) # True

# 原始列表不受影响
original_lst = [1, 2, 3, 4, 5]
print(original_lst) # [1, 2, 3, 4, 5]
